package com.soryin.entity;


import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * 时间Block
 * @author Hello_海生
 * @date 2014年3月6日
 */

@Entity
@Table(name="Soryin_B_Time")
public class TimeBlock {
	private int id;
	private Soryin SoryinId;
	private Date timeStart;		//开始时间
	private Date timeEnd;		//结束时间
	
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	@OneToOne(cascade=CascadeType.ALL,fetch=FetchType.LAZY)
	public Soryin getSoryinId() {
		return SoryinId;
	}
	public void setSoryinId(Soryin soryinId) {
		SoryinId = soryinId;
	}
	
	public Date getTimeStart() {
		return timeStart;
	}
	public void setTimeStart(Date timeStart) {
		this.timeStart = timeStart;
	}
	public Date getTimeEnd() {
		return timeEnd;
	}
	public void setTimeEnd(Date timeEnd) {
		this.timeEnd = timeEnd;
	}
	
	
}
